#ifndef SERVERCONFIG_H
#define SERVERCONFIG_H

#include <QString>
#include <QMap>

class ServerConfig
{
public:
    ServerConfig() = default;
    ~ServerConfig() = default;

    void setAnonymousEnable(bool enable);
    bool anonymousEnable() const;

    void addUser(const QString& username, const QString& password);
    bool verifyUser(const QString& username, const QString& password) const ;

    void setRootDirectory(const QString& rootDir);
    QString rootDirectory() const;

private:
    bool m_anonymousEnable = true;
    QMap<QString, QString> m_users;
    QString m_rootDir;
};

#endif // SERVERCONFIG_H
